package Practice;

public class Overload_02 {
    public int max(int n,int m){
        return m>n?m:n;
    }
    public double max(double d1,double d2){
        return d1>d2?d1:d2;
    }
    public void max(int n,double d1,double d2){
        double tmp1=max(d1,d2);
        double tmp2=d1+d2-tmp1;
        if(n>tmp1){
            System.out.println(n+">"+tmp1+">"+tmp2);
        }else{
            if(n>tmp2){
                System.out.println(tmp1+">"+n+">"+tmp2);
            }else{
                System.out.println(tmp1+">"+tmp2+">"+n);
            }
        }
    }

    public static void main(String[] args) {
        Overload_02 ol=new Overload_02();
        ol.max(1,1.5,1.3);
    }
}
